package com.example.HaiDLaobackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("`order`")
public class OrderEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String merchantName;
    private BigDecimal totalAmount;
    private BigDecimal originalAmount;
    private Long couponId;
    private BigDecimal discountAmount;
    private String status;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}


